package utils

import (
	"fmt"
	"goweb/web/global"
)

func Open() {
	uri := `http://`

	// 解析 ip
	/**
	ip, err := ExternalIP()
	if err == nil {
		uri += ip.String()
	} else {
		uri += `localhost`
	}
	*/
	uri += `localhost`
	uri += fmt.Sprintf("%s%d", `:`, global.Config.Server.Port)
	OpenUri(uri)
}
